<script setup>
import {ref}from 'vue'
const  val = ref('')
</script>

<template>
    <form action="">
      <input type="text" v-model="val">
      <p>你输入的内容是：{{val}}</p>
    </form>
</template>

<style scoped>

</style>